package ua.com.softway.mail;

import ua.com.softway.db.Query;

public class MailerConfig {
    public int sendBatchSize = 20;
    
    public String[] getMessageStatesToSend() {
        return new String[] { GeneratedMessage.NewMessage };
    }
    
    public MailAccount getAccount(GeneratedMessage message) {
        Query<MailAccount> q = new Query<MailAccount>(MailAccount.class, "1 = 1");
         
        return q.getSingleResult();
    }
}